<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="org.springframework.security.ui.webapp.AuthenticationProcessingFilter" %>
<%@ page import="org.springframework.security.ui.AbstractProcessingFilter" %>
<%@ page import="org.springframework.security.AuthenticationException" %>

<%@page import="com.yaodian100.core.admin.utils.AdminHelper"%>
<%@page import="org.springframework.security.userdetails.UserDetails"%>
<%@page import="com.yaodian100.core.common.utils.JspUtil" %>
<%@page import="com.yaodian100.core.admin.entity.*" %>
<%@page import="java.util.*" %>
<%
	UserDetails userDetails = AdminHelper.getUserDetails();
	User user=(User)JspUtil.get(User.class.getName(), userDetails.getUsername());
	Group group=user.getGroup();
	if(group.getCode().startsWith("C")){
	    //response.sendRedirect("cs/page.do?iamlazy=index");
	    response.sendRedirect("supplierApply/page.do?iamlazy=index");
	}else{
	    //response.sendRedirect(request.getParameter("default"));
	    response.sendRedirect("supplierApply/page.do?iamlazy=index");
	}
%>
